import request from '@/utils/request'
// import axios from 'axios'
import { apiVersion } from '@/config'
// AI市场待审核
export function geAuditAlgorithmVersions(data) {
    return request({
        url: `/admin/${apiVersion}/marketAlgorithmVersion/audit/init`,
        method: 'get',
        data
    })
}
// 审核通过
export function passAlgorithmVersion(id) {
    return request({
        url: `/admin/${apiVersion}/marketAlgorithmVersion/${id}/pass`,
        method: 'put'
    })
}
// 审核不通过
export function denyAlgorithmVersion(id) {
    return request({
        url: `/admin/${apiVersion}/marketAlgorithmVersion/${id}/deny`,
        method: 'put'
    })
}
// AI模型待审核
export function geAuditModelVersions(data) {
    return request({
        url: `/admin/${apiVersion}/marketModelVersion/audit/init`,
        method: 'get',
        data
    })
}
// 审核通过
export function passModelVersion(id) {
    return request({
        url: `/admin/${apiVersion}/marketModelVersion/${id}/pass`,
        method: 'put'
    })
}
// 审核不通过
export function denyModelmVersion(id) {
    return request({
        url: `/admin/${apiVersion}/marketModelmVersion/${id}/deny`,
        method: 'put'
    })
}
// AI数据集待审核
export function geAuditatasets(data) {
    return request({
        url: `/admin/${apiVersion}/marketDataset/audit/init`,
        method: 'get',
        data
    })
}
// 审核通过
export function passDataset(id) {
    return request({
        url: `/admin/${apiVersion}/marketDataset/${id}/pass`,
        method: 'put'
    })
}
// 审核不通过
export function denyDataset(id) {
    return request({
        url: `/admin/${apiVersion}/marketDataset/${id}/deny`,
        method: 'put'
    })
}